import hljs from 'highlight.js';

export default {
  updated(el: HTMLElement) {
    const codes = el.querySelectorAll('pre code') as NodeListOf<HTMLElement>;
    codes.forEach((code) => {
      hljs.highlightElement(code);
    });
  },
};
